package com.mccree.elasticsearch.an;

import com.mccree.elasticsearch.esenum.EsDataType;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @Author: MccRee
 * @Date: 2022/5/20 13:21
 */

@Documented
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface Field {
    //默认属性名
    String name()default "" ;
    //数据类型
    EsDataType type();
    String analyzer()default ""; //分词
    String searchAnalyzer()default ""; //搜索分词
}

